package org.example.medical.Mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.example.medical.entity.DataSharing;

import java.util.List;

@Mapper
public interface DataSharingMapper {
    // 查询数据共享记录分页数据
    List<DataSharing> selectByPage(
            @Param("hospital") String hospital,
            @Param("department") String department,
            @Param("offset") int offset,
            @Param("size") int size
    );

    // 新增数据共享记录
    void insertDataSharing(DataSharing dataSharing);

    // 更新数据共享记录
    void updateDataSharing(DataSharing dataSharing);

    // 软删除数据共享记录
    void softDeleteDataSharing(@Param("shareId") Long shareId);

    // 批量软删除数据共享记录
    void batchSoftDeleteDataSharings(@Param("shareIds") List<Long> shareIds);
}